//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * messageDao
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
 
package com.gamutsoft.amb.message.dao;

import java.util.List;
import java.util.Map;

import com.gamutsoft.amb.common.bean.QueryExample;
import com.gamutsoft.amb.common.dao.IGenericDao;
import com.gamutsoft.amb.common.exception.BusinessException;
import com.gamutsoft.amb.message.model.Message;
import com.gamutsoft.amb.messageuser.model.MessageUser;


public interface IMessageDao extends IGenericDao<Message,Long> {
	/**
	 * 根据条件查询记录
	 * @author Mengxiangliang
	 * @param  QueryExample
	 * @return List<Map>
	 * @throws BusinessException
	 */
	public List<Map> searchMessageList(QueryExample qe) throws BusinessException ;

	/**
	 * 根据ID查询记录
	 * @author Mengxiangliang
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	public Message searchMessageById(Long id) throws BusinessException ;

	/**
	 * 删除记录
	 * @author Mengxiangliang
	 * @param id
	 * @throws BusinessException
	 */
	public void deleteMessageById(Long id) throws BusinessException ; 
	/**
	 * 根据条件查询记录
	 * @author Mengxiangliang
	 * @param  QueryExample
	 * @return MessageList
	 * @throws BusinessException
	 */
	public List<Map> searchMessageByWhere(QueryExample qe,MessageUser domain) throws BusinessException;

}
